import request from '@/utils/request'

// 查询短信任务列表
export function listSms_task(query) {
    return request({
        url: '/bizsys/sms_task/list',
        method: 'get',
        params: query
    })
}

// 查询短信任务详细
export function getSms_task(id) {
    return request({
        url: '/bizsys/sms_task/' + id,
        method: 'get'
    })
}

// 新增短信任务
export function addSms_task(data) {
    return request({
        url: '/bizsys/sms_task',
        method: 'post',
        data: data
    })
}

// 修改短信任务
export function updateSms_task(data) {
    return request({
        url: '/bizsys/sms_task',
        method: 'put',
        data: data
    })
}

// 删除短信任务
export function delSms_task(id) {
    return request({
        url: '/bizsys/sms_task/' + id,
        method: 'delete'
    })
}

// 导出短信任务
export function exportSms_task(query) {
    return request({
        url: '/bizsys/sms_task/export',
        method: 'get',
        params: query
    })
}
